var v = new Vue({
    el:"#app",
    data:{
        name:'',
        phone:'',
        email:'',
        select:'',
        textarea:'',
        userMsg:{userid:""},
        linksdata:{},
    },
    created(){
        this.getUserMsg();
        this.queryLinks();
    },
    methods:{
        // 登录列表显示/隐藏
        userloginlistchange(){
            this.userlogin?this.userlogin=false:this.userlogin=true;
        },
        getUserMsg(){
            axios.get("GetUserMessageServlet.s").then(res=>{
                this.userMsg=res.data.data;
                console.log("获取用户信息成功");
                console.log(this.userMsg.image);
            });
        },
        queryLinks(){
            axios.get("UserQueryLinksServlet.s").then(res=>{
                this.linksdata=res.data;
            })
        },
    }
});